package com.ztesoft.book.core.aliyun.oss.service;

import com.aliyuncs.exceptions.ClientException;
import com.ztesoft.book.core.aliyun.oss.dto.STSResponse;

/**
 * @author wanshuhan
 * @date 2021/7/6 9:31
 */
public interface STSService {
    /**
     * 获取oss临时权限
     *
     * @param accessKeyId     accessKeyId
     * @param accessKeySecret accessKeySecret
     * @param roleArn         roleArn
     * @param roleSessionName roleSessionName
     * @return STSResponse
     * @throws ClientException ClientException
     * @author sunhanyue
     * @date 2020/3/16
     */
    STSResponse getSTSCredentials(
            String accessKeyId, String accessKeySecret, String roleArn, String roleSessionName) throws ClientException;

}
